﻿<my:AccelerometerUserControl x:Class="Coding4Fun.Cannon.TechEdPhone.Complete.Controls.DriveView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:Coding4Fun.Cannon.TechEdPhone.Complete.Controls"
    mc:Ignorable="d"
    Width="640" Height="480">

    <Grid x:Name="LayoutRoot">
        <TextBlock>Drive Control</TextBlock>
        <Image x:Name="uxForwardIcon"
               Source="../Media/ForwardActive.png" 
               MouseLeftButtonDown="ForwardIcon_MouseLeftButtonDown" Stretch="None"  Margin="412,33,60,325" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        <Image x:Name="uxReverseIcon"
               Source="../Media/ReverseActive.png"
               MouseLeftButtonDown="ReverseIcon_MouseLeftButtonDown" Stretch="None" Margin="412,346,60,12" VerticalAlignment="Center" HorizontalAlignment="Center" />
        <Slider x:Name="uxShifter"
                ValueChanged="Shifter_ValueChanged"
                Maximum="1" VerticalAlignment="Center"
                HorizontalAlignment="Center" Height="179" Margin="493,161,115,140" Orientation="Vertical" />
        
        <Button x:Name="uxGasPedal" Content="Go" ManipulationStarted="uxGasPedal_ManipulationStarted" ManipulationCompleted="uxGasPedal_ManipulationCompleted"/>
        <TextBlock x:Name="RightEngine" VerticalAlignment="Center"
                HorizontalAlignment="Center" Margin="161,61,467,403">R0</TextBlock>
        <TextBlock x:Name="LeftEngine" VerticalAlignment="Center"
                HorizontalAlignment="Center" Margin="111,61,517,403">L0</TextBlock>
    </Grid>
</my:AccelerometerUserControl>